package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.service.MessageTelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 *
 * @Version: 1.0
 */
@RestController
@RequestMapping("/messageTel")
public class MessageTelController {

	@Resource
	private MessageTelService messageTelService;

	@GetMapping("/syncTel")
	public CommonResult syncMessageTel() {
		messageTelService.insertMessageTel();
		return CommonResult.success();
	}

	@GetMapping("/insertUserTel")
	public CommonResult insertUserTel() {
		messageTelService.insertUserTel();
		return CommonResult.success();
	}
}
